﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Objects;
using PowerBooking.RSE.Poco;
using PowerBooking.RSE.Utility.Helpers;
using PowerBooking.RSE.IRepository;
using System.Data.EntityClient;
using System.Data.Entity;

namespace PowerBooking.RSE.Repository
{
    /// <summary>
    /// 数据上下文
    /// </summary>
    public class DataContext : DbContext
    {
        public DbSet<SpiderPoco> Spiders { get; set; }
        public DbSet<CityPoco> Cities { get; set; }
        public DbSet<FilterPoco> Filters { get; set; }
        public DbSet<RestaurantPoco> Restaurants { get; set; }

        static DataContext()
        {
            Database.SetInitializer<DataContext>(null);
        }

        public DataContext()
            : base()
        {
            
        }
    }
}
